#include"Heap.h"



int main()
{
	int arr[] = { 15, 18, 19, 25, 28, 34, 65, 49, 27, 37 };
	Heap hp;
	HeapInit(&hp);
	int sz = sizeof(arr) / sizeof(arr[0]);
	for (int i = 0; i < sz; i++)
	{
		HeapPush(&hp, arr[i]);
	}
	//HeapPrint(&hp);
	//HeapPop(&hp);
	//HeapPrint(&hp);
	//HeapDataType  a = HeapTop(&hp);
	//printf("%d ", a);
	
	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	return 0;
}